class {
    onCreate() {
        this.state = {
            count: 0
        };
    }
}

<div.root>
    <span>
        ${state.count}
    </span>
</div>
